//
//  LMSNewBorderLabel.m
//  LMS
//
//  Created by dfws on 2019/3/21.
//  Copyright © 2019年 dfws. All rights reserved.
//

#import "LMSNewBorderLabel.h"

@implementation LMSNewBorderLabel
- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)drawRect:(CGRect)rect
{
    //文字距离上下左右边框都有10单位的间隔
    CGRect newRect = CGRectMake(rect.origin.x + 2, rect.origin.y + 2, rect.size.width -4, rect.size.height -4);
    [super drawTextInRect:newRect];
}
@end
